package com.ele.client.words;

import com.github.gwtbootstrap.client.ui.Button;
import com.github.gwtbootstrap.client.ui.TextBox;
import com.google.gwt.core.shared.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

/**
 * Created with IntelliJ IDEA.
 * User: wayfinder
 * Date: 14.08.12
 * Time: 14:27
 * To change this template use File | Settings | File Templates.
 */
public class EditorView extends Composite implements EditorPresenter.Display {

    interface DefaultUiBinder extends UiBinder<Widget, EditorView> {}
    private static DefaultUiBinder uiBinder = GWT.create(DefaultUiBinder.class);

    @UiField
    TextBox wordTextBox;
    @UiField
    TextBox translationTextBox;
    @UiField
    Button saveButton;
    @UiField
    Button cancelButton;
    @UiField
    Button nextButton;
    @UiField
    Button prevButton;


    public EditorView() {
        initWidget(uiBinder.createAndBindUi(this));
    }

    @Override
    public TextBox getWordTextBox() {
        return wordTextBox;
    }

    @Override
    public TextBox getTranslationTextBox() {
        return translationTextBox;
    }

    @Override
    public Button getSaveButton() {
        return saveButton;
    }

    @Override
    public Button getCancelButton() {
        return cancelButton;
    }

    @Override
    public Button getPrevButton() {
        return prevButton;
    }

    @Override
    public Button getNextButton() {
        return nextButton;
    }
}
